package net.roseparadise.model;
// default package

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;



/**
 * PhotoComment entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="tphotocomment"
    ,catalog="studio"
)

public class PhotoComment  implements java.io.Serializable {


    // Fields    

     private PhotoCommentId id;
     private Integer parentid;
     private Integer childcount;
     private Integer memberid;
     private String membername;
     private String guestname;
     private String createdate;
     private String updatedate;
     private String content;


    // Constructors

    /** default constructor */
    public PhotoComment() {
    }

	/** minimal constructor */
    public PhotoComment(PhotoCommentId id, String createdate, String content) {
        this.id = id;
        this.createdate = createdate;
        this.content = content;
    }
    
    /** full constructor */
    public PhotoComment(PhotoCommentId id, Integer parentid, Integer childcount, Integer memberid, String membername, String guestname, String createdate, String updatedate, String content) {
        this.id = id;
        this.parentid = parentid;
        this.childcount = childcount;
        this.memberid = memberid;
        this.membername = membername;
        this.guestname = guestname;
        this.createdate = createdate;
        this.updatedate = updatedate;
        this.content = content;
    }

   
    // Property accessors
    @EmbeddedId
    
    @AttributeOverrides( {
        @AttributeOverride(name="photoid", column=@Column(name="PHOTOID", nullable=false) ), 
        @AttributeOverride(name="commentid", column=@Column(name="COMMENTID", nullable=false) ) } )

    public PhotoCommentId getId() {
        return this.id;
    }
    
    public void setId(PhotoCommentId id) {
        this.id = id;
    }
    
    @Column(name="PARENTID")

    public Integer getParentid() {
        return this.parentid;
    }
    
    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }
    
    @Column(name="CHILDCOUNT")

    public Integer getChildcount() {
        return this.childcount;
    }
    
    public void setChildcount(Integer childcount) {
        this.childcount = childcount;
    }
    
    @Column(name="MEMBERID")

    public Integer getMemberid() {
        return this.memberid;
    }
    
    public void setMemberid(Integer memberid) {
        this.memberid = memberid;
    }
    
    @Column(name="MEMBERNAME", length=30)

    public String getMembername() {
        return this.membername;
    }
    
    public void setMembername(String membername) {
        this.membername = membername;
    }
    
    @Column(name="GUESTNAME", length=30)

    public String getGuestname() {
        return this.guestname;
    }
    
    public void setGuestname(String guestname) {
        this.guestname = guestname;
    }
    
    @Column(name="CREATEDATE", nullable=false, length=1)

    public String getCreatedate() {
        return this.createdate;
    }
    
    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }
    
    @Column(name="UPDATEDATE", length=14)

    public String getUpdatedate() {
        return this.updatedate;
    }
    
    public void setUpdatedate(String updatedate) {
        this.updatedate = updatedate;
    }
    
    @Column(name="CONTENT", nullable=false, length=65535)

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
   








}